<?php
namespace Myth\Data\Model\DbTable;

use Zend\Db;

interface IRelation
{
    const RELATION_1_1 = 'RELATION_1_1';
    const RELATION_1_MANY = 'RELATION_1_MANY';
    const RELATION_MANY_MANY = 'RELATION_MANY_MANY';
    
    public function addTable(Table\Table $table, $relationType, $baseTableField, $foreignTableField, $conditions);
    public function getTables();
    public function getTable($table);
    public function join(Db\Select $select);
}